package org.s3.project.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.s3.project.entity.Favorites;

import java.util.List;

/**
 * @author ljh
 * @version 1.0
 * @Description
 * @date 2025/2/18 09:13
 */
public interface FavoritesService extends IService<Favorites> {
    //添加收藏
    int getFavoritesAdd(Favorites favorites);
    //查询收藏
    List<Favorites> selectFavorites(int id);
    //删除收藏
    Integer deleteFavorites(Integer user_id, Integer dish_id);
    //唯一验证
    Integer selectFavoritesByUserIdAndDishId(Favorites favorites);
    //查询收藏数量
    List<Favorites>selectFavoritesCount(int user_id);

    //查询已收藏的菜品id
    List<Favorites> getFavoritesId(int user_id);
}
